Answer:

Task 1
IF some test THEN
  Task 2
ELSE
  Task 3
END IF

Checking Account Problem

checking account flow chart

Consider the following problem:

You want a program that keeps the balance of your checking account. You will run the program each time you make a transaction. Transactions are of two types:

  1. A deposit.
  2. A check.

The deposit amount will be added to the balance. The check amount will be subtracted from the balance.

Say that you have analyzed the problem and have decided on these tasks:

  1. Get the starting balance
  2. .
  3. Determine transaction type.
  4. Process a deposit.
  5. Process a check.
  6. Print the new balance.

A plan for the program is below. Depending on the transaction type, one of two subtasks is chosen.

____________

____________

IF transaction is a deposit THEN
  ____________
  
ELSE
  ____________
  
END IF
____________

END

QUESTION 8:

Fill in the blanks in the above plan for the program from the list of tasks.